package com.entity.view;

import java.util.List;

public class PieChartData {
    private int code;
    private List<String> legendData;
    private List<DataItem> seriesData;

    // Getters and setters
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<String> getLegendData() {
        return legendData;
    }

    public void setLegendData(List<String> legendData) {
        this.legendData = legendData;
    }

    public List<DataItem> getSeriesData() {
        return seriesData;
    }

    public void setSeriesData(List<DataItem> seriesData) {
        this.seriesData = seriesData;
    }

    // Inner class for data item
    public static class DataItem {
        private int value;
        private String name;

        // Getters and setters
        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
